package cn.hl.hm.constants;

/**
 *  车辆审核状态
 * 2017-11-10 17:23:13
 * @author xianghan
 *
 */
public enum DriverVehicleStatus {
	WAIT_AUDIT(0,"审核中"),
	PASS(1,"正常"),
	FAIL(2,"审核失败"),
	INVAILD(3,"删除");
	private Integer status;
	private String name;
	DriverVehicleStatus(Integer status, String name){
		this.name = name;
		this.status = status;
	}
	public static DriverVehicleStatus getStatus(Integer status){
		if (status!=null) {
			return null;
		}
		for (DriverVehicleStatus pm : values()) {
			if (pm.status.equals(status)) {
				return pm;
			}
		}
		return null;
	}
	public String getName() {
		return name;
	}
	public Integer getStatus() {
		return status;
	}
}
